package com.example.activity_service.dao;


import com.example.activity_service.vo.StopWatch;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface Msdao {

    @Select("select * from stopwatch")
    List<StopWatch> huoqusj();

    @Insert("insert into stopwatch (openingtime,endtime,creationtime)values(#{openingtime},#{endtime},now())")
    int tjsj(StopWatch stopWatch);
//    String tjsj(String openingtime, String endtime);
}
